{include file="header"}
<div class="x-body">
	<xblock>
		<a href="javascript:location.reload();" class="layui-btn layui-btn-warm">
			<i class="icon iconfont"></i> 刷新
		</a>
		<span class="x-right" style="line-height:40px">共有数据：{:fun_st('file',array())} 条</span>
	</xblock>
	<div  style="overflow: auto;">
        <table class="layui-table" style="min-width: 1000px;">
		<thead>
			<tr>
				<th>原文件名</th>
				<th>附件大小</th>
				<th>附件格式</th>
				<th>上传的用户</th>
				<th>上传时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name=":fun_s('file',array(),'id desc','20,false',0)" id="vo"}
			<tr>
				<td><a href="{$vo.savepath}" target="_blank">{$vo.name}</a></td>
				<td>{$vo.size|size}</td>
				<td>{$vo.ext}</td>
				<td><a href="{:url('index/index/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$vo.uid), 'username')}</a></td>
				<td>{$vo.create_time|times}</td>
				<td id="admin_set">
					<a class="layui-btn layui-btn-sm layui-btn-danger del_t" url="{:url('admin/api/filedelete')}?id={$vo.id}" name="确定要删除这条记录吗？同时会删除本地文件">
						<i class="layui-icon"></i>删除
					</a>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
	</div>
	<div class="page">
		{:fun_s('file',array(),'id desc','20,false',0)->render()}
	</div>
</div>
{include file="footer"}